package com.victor.entity.toreport;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 举报表
 * @author 
 *
 */
@Entity
@Table(name = "toreport")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ToReport {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 主键id,
	
	@Column(name = "fromuid", length = 50)
	private String fromuid;//举报人id
	
	@Column(name = "touid", length = 50)
	private String touid;//被举报人id
	
	@Column(name = "reson", length = 50)
	private String reson;//举报原因
	
	@Column(name = "content", length = 5000)
	private String content;//补充内容
	
	@Column(name = "state", length = 50)
	private String state;//解决状态 （0新举报，1已解决）
	
	@Column(name = "delstate", length = 50)
	private String delstate;//删除状态 0-删除  1-正常
	
	@Column(name = "type", length = 50)
	private String type;//投诉评论表 0-城市 1-景区 2-宾馆 3-美食  4-娱乐  5-商品  6-团游 7-攻略  8-各人游记
	
	@Column(name = "cid", length = 50)
	private String cid;//评论的id
	
	@Column(name = "time", length = 50)
	private String time;//举报日期
	
	@Column(name = "adminname", length = 50)
	private String adminname;//处理人
	
	@Column(name = "frozentime", length = 50)
	private String frozentime;//处理日期
	
	@Column(name = "resultstart", length = 50)
	private String resultstart;//处理结果开始时间
	
	@Column(name = "resultend", length = 50)
	private String resultend;//处理结果结束时间
	
	
	@Transient
	private List<ToreportPhoto> photos;

}
